package com.ly.crawl.impl;

import com.ly.crawl.DataDao;

import java.util.List;
import java.util.Map;

public class ListDataDao implements DataDao<List<Map<String, Object>>> {

    SimpleDataDao sdd;

    public ListDataDao(String table) {
        this.sdd = new SimpleDataDao(table);
    }

    @Override
    public void save(List<Map<String, Object>> data) {
        for (Map<String, Object> d : data) {
            sdd.save(d);
        }
    }
}
